#!/usr/bin/env node

const koa = require('koa'),
      bodyparser = require('koa-bodyparser'),
      tasks = require('./routes/tasks.js'),
      app = new koa();
      

app.use(bodyparser({enableTypes:['json','form','text']}));
app.use(tasks.routes());
app.listen(8080);
